﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/admin.master" AutoEventWireup="true" CodeBehind="edit-user.aspx.cs" Inherits="SocialShare.Web.Admin.edit_user" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="<%= Utilities.SiteSettings.BaseUrl %>Scripts/jquery.ui.datepicker.js"
        type="text/javascript"></script>
    <script src="<%= Utilities.SiteSettings.BaseUrl %>Scripts/Jquery-UI/jquery.ui.core.js"
        type="text/javascript"></script>
        <script type="text/javascript">
            $(function () {
                $(".datepicker").datepicker({
                    changeMonth: true,
                    changeYear: true,
                    showOn: "both",
                    buttonImage: "../App_Style/images/Calendar_32.png",
                    buttonImageOnly: true,
                    showAnim: 'slideDown'
                });
            });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<section id="divNotice" runat="server" class="notice">
       You can add/edit SocialShre members from this page, if you not using membership provider. Check siteconfig.xml and make sure MEMBERSHIP_PROVIDER_USED is set to NO
    </section>
 <section id="divMessage" runat="server" visible="false">
        <asp:Literal ID="lblMessage" runat="server"></asp:Literal>
    </section>
     <section class="grid_6">
     <fieldset>
     <legend class="title-regular">Profile Info</legend>
        <p>
            <label>
                First Name:</label><br />
            <asp:TextBox runat="server" ID="txtFirstName" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvtxtFirstName" ControlToValidate="txtFirstName"
                SetFocusOnError="true" runat="server" ErrorMessage="*" Display="Dynamic" CssClass="required-field"></asp:RequiredFieldValidator><br />
            <label>
                last Name:</label><br />
            <asp:TextBox runat="server" ID="txtlastName" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvtxtlastName" ControlToValidate="txtlastName" SetFocusOnError="true"
                runat="server" ErrorMessage="*" Display="Dynamic" CssClass="required-field"></asp:RequiredFieldValidator>
            <br />
            <label>
                Date Of Birth:</label><br />
            <asp:TextBox runat="server" ID="txtDOB" CssClass="text datepicker"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvtxtDOB" ControlToValidate="txtDOB" SetFocusOnError="true"
                runat="server" ErrorMessage="*" Display="Dynamic" CssClass="required-field"></asp:RequiredFieldValidator>
            
            <br />
            <label>
                Website:</label><br />
            <asp:TextBox runat="server" ID="txtWebSite" CssClass="text"></asp:TextBox>
            <br />
            <label>
                Blog Name</label><br />
            <asp:TextBox runat="server" ID="txtBlogName" CssClass="text"></asp:TextBox><br />
            <asp:RequiredFieldValidator ID="rfvtxtBlogName" runat="server" ControlToValidate="txtBlogName"
                ErrorMessage="*" Display="Dynamic" SetFocusOnError="true"
                CssClass="clearfix required-field" />
                 <label>
                     
                Sex</label><br />
            <asp:RadioButtonList ID="rdblSex" runat="server" RepeatDirection="Horizontal">
            <asp:ListItem>Male</asp:ListItem>
            <asp:ListItem>Female</asp:ListItem>
            </asp:RadioButtonList>
                

        </p>
        </fieldset>
       
       
    </section>
    <section class="grid_6">
      <fieldset>
     <legend class="title-regular">SignIn Info</legend>
        <p>
            <label>
                Screen Name:</label><br />
            <asp:TextBox runat="server" ID="txtScreenName" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvtxtScreenName" ControlToValidate="txtScreenName"
                SetFocusOnError="true" runat="server" ErrorMessage="*" Display="Dynamic" CssClass="required-field"></asp:RequiredFieldValidator>
            <br />
            <br />
            <label>
                Email Address:</label><br />
            <asp:TextBox runat="server" ID="txtEmailAddress" CssClass="text"></asp:TextBox><asp:RequiredFieldValidator
                ID="rfvtxtEmailAddress" ControlToValidate="txtEmailAddress" SetFocusOnError="true"
                runat="server" ErrorMessage="*" Display="Dynamic" CssClass="required-field"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="revtxtEmailAddress" runat="server" 
                ControlToValidate="txtEmailAddress" ErrorMessage="Incorrect email" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic" CssClass="required-field"></asp:RegularExpressionValidator>
            <br />
            <label>
                Password:</label><br />
            <asp:TextBox runat="server" ID="txtPassword" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvtxtPassword" ControlToValidate="txtPassword" SetFocusOnError="true"
                runat="server" ErrorMessage="*" Display="Dynamic" CssClass="required-field"></asp:RequiredFieldValidator>
            <br />
        </p>
        <br />
         <asp:LinkButton runat="server" ID="lnbSave" Text="Save" CssClass="button medium green" OnClick="lnbSave_Click"></asp:LinkButton>
        </fieldset>
        
    </section>
   
</asp:Content>
